package com.guoguo.service;


import com.guoguo.base.PageBean;
import com.guoguo.entity.Favorite;
import com.guoguo.entity.vo.UserFavouriteVO;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/8/17.
 */
public interface UserFavouriteService {
    PageBean<UserFavouriteVO> Userfavourite(String modelId);


    /**
     * 添加收藏
     */
    int insert(Favorite favorite);

    /**
     * 取消收藏的图片
     *
     * @param imgId
     * @param userId
     * @return
     */
    int deleteFavorite(List<String> imgId, String userId);

    /**
     * 取消专辑的收藏
     *
     * @param albId
     * @param userId
     * @return
     */
    int deleteAlbumFavorite(List<String> albId, String userId);


    public int deletedFavorite(String[] ids, int type, String userId);

    Favorite findFavoriteByIds(Favorite favorite);
}
